package com.farmer.redpacket.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.support.RequestContext;

import javax.servlet.http.HttpSession;

/**
 * @author tech-farmer
 * @ClassName: PageController
 * @Description: (这里用一句话描述这个类的作用)
 * @date 2021/11/19 9:35
 */
@Controller
@RequestMapping("/page")
public class PageController {


    @GetMapping("/index")
    public String index(HttpSession session,ModelMap map){
        map.put("session",session);
        return "index";
    }
}
